package com.caipin.domain.web;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:47
 * @Description: TODO
 */
public class AnalysisResultRate {
    private String grade;

    private String classroomId;

    private String classId;

    private String eventName;

    private int statisticalRate;

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public void setClassroomId(String classroomId) {
        this.classroomId = classroomId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public void setStatisticalRate(int statisticalRate) {
        this.statisticalRate = statisticalRate;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.web.AnalysisResultRate))
            return false;
        com.caipin.domain.web.AnalysisResultRate other = (com.caipin.domain.web.AnalysisResultRate)o;
        if (!other.canEqual(this))
            return false;
        Object this$grade = getGrade(), other$grade = other.getGrade();
        if ((this$grade == null) ? (other$grade != null) : !this$grade.equals(other$grade))
            return false;
        Object this$classroomId = getClassroomId(), other$classroomId = other.getClassroomId();
        if ((this$classroomId == null) ? (other$classroomId != null) : !this$classroomId.equals(other$classroomId))
            return false;
        Object this$classId = getClassId(), other$classId = other.getClassId();
        if ((this$classId == null) ? (other$classId != null) : !this$classId.equals(other$classId))
            return false;
        Object this$eventName = getEventName(), other$eventName = other.getEventName();
        return ((this$eventName == null) ? (other$eventName != null) : !this$eventName.equals(other$eventName)) ? false : (!(getStatisticalRate() != other.getStatisticalRate()));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.web.AnalysisResultRate;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $grade = getGrade();
        result = result * 59 + (($grade == null) ? 43 : $grade.hashCode());
        Object $classroomId = getClassroomId();
        result = result * 59 + (($classroomId == null) ? 43 : $classroomId.hashCode());
        Object $classId = getClassId();
        result = result * 59 + (($classId == null) ? 43 : $classId.hashCode());
        Object $eventName = getEventName();
        result = result * 59 + (($eventName == null) ? 43 : $eventName.hashCode());
        return result * 59 + getStatisticalRate();
    }

    public String toString() {
        return "AnalysisResultRate(grade=" + getGrade() + ", classroomId=" + getClassroomId() + ", classId=" + getClassId() + ", eventName=" + getEventName() + ", statisticalRate=" + getStatisticalRate() + ")";
    }

    public String getGrade() {
        return this.grade;
    }

    public String getClassroomId() {
        return this.classroomId;
    }

    public String getClassId() {
        return this.classId;
    }

    public String getEventName() {
        return this.eventName;
    }

    public int getStatisticalRate() {
        return this.statisticalRate;
    }
}

